package com.mmall.orderItem;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import pojo.OrderItem;
import pojo.Product;

import java.util.List;

@FeignClient(
        url="http://localhost:18084",
        name="orderItem"
)
@RequestMapping("/orderItem")
public interface OrderItemFeign {
    @PostMapping("/batchInsert")
    Product batchInsert(@RequestBody List<OrderItem> orderItems);
}
